import axios from '@/utils/request';

//获取举报列表
export function getReportList(current: number, size: number) {
    return axios({
        url: `/answer/report/getReportList/${current}/${size}`,
        method: "get"
    })
}

//审核举报
export function auditReport(id: number, message: string) {
    return axios({
        url: `/answer/report/auditReport/${id}/${message}`,
        method: "put"
    })
}

//搜索
export function searchReport(reportParams: object) {
    return axios({
        url: "/answer/report/searchReport",
        method: "post",
        data: reportParams
    })
}